package com.gitee.cirnochat.user.model.vo.resp;

import com.gitee.cirnochat.user.model.entity.UserPrivacySetting;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
@Schema(name = "用户隐私设置", description = "用户隐私设置")
public class UserPrivacySettingVo {
    /**
     * 是否允许通过UUID搜索
     */
    @Schema(description = "是否允许通过UUID搜索", example = "true")
    private Boolean searchableByUuid;

    /**
     * 是否允许通过手机号搜索
     */
    @Schema(description = "是否允许通过手机号搜索", example = "true")
    private Boolean searchableByPhone;

    /**
     * 是否允许通过邮箱搜索
     */
    @Schema(description = "是否允许通过邮箱搜索", example = "true")
    private Boolean searchableByEmail;


    public UserPrivacySettingVo(UserPrivacySetting userPrivacySetting) {
        BeanUtils.copyProperties(userPrivacySetting, this);
    }
}
